Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented May 6, 2025

Backport: #1129

Note: CI is not automatically triggered on backported PRs, please comment 'ok to test' to launch Jenkins jobs

Please make sure that your PR meets the following requirements:

  • You have read the contributors guide
  • Your code is properly formatted according to our code style
  • Pull Request title contains the target branch if not targeting main: [0.9.x] Subject
  • Pull Request contains link to the issue
  • Pull Request contains link to any dependent or related Pull Request
  • Pull Request contains description of the issue
  • Pull Request does not include fixes for issues other than the main ticket

Enables the generator to initialize collections as an empty collection instead of null

this PR fixes #734

  1. Introducing a new configuration property initialize-empty-collections, wich defaults to false
  2. When parameter is set, collections will be initialized as an empty set or an empty list, instead of null

* Add initialize empty collection parameter

* Fixed wrong spec name and wrong import in initialize-empty-collection test

---------

Co-authored-by: Sebastian Brune <[email protected]>
Co-authored-by: Frederik Kischewski <[email protected]>
@github-actions github-actions bot requested a review from a team as a code owner May 6, 2025 19:10
@ricardozanini ricardozanini reopened this May 6, 2025
@ricardozanini
Copy link
Member

@fkischewski99 can you check the CI errors?

@github-actions
Copy link
Contributor Author

🎊 PR Preview 8c8f6ca has been successfully built and deployed. See the documentation preview: https://quarkus-openapi-generator-preview-pr-1131.surge.sh

@hbelmiro hbelmiro merged commit 72347d8 into main-lts May 13, 2025
11 checks passed
@hbelmiro hbelmiro deleted the main-lts_feat/initialize-empty-collections branch May 13, 2025 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants